package main

import (
	"html/template"
	"net/http"
)

func main() {
	http.HandleFunc("/about", func(w http.ResponseWriter, r *http.Request) {
		t, _ := template.ParseFiles("web/layout.html", "web/about.html")
		t.ExecuteTemplate(w, "layout", map[string]interface{}{
			"about":   true,
			"content": "hello, i'm about",
		})
	})

	http.Handle("/css/", http.FileServer(http.Dir("web")))

	http.ListenAndServe("localhost:8080", nil)
}
